.data-overview-layout {
  min-height: 100vh;
  background-color: #f0f2f5;
}

.data-overview-content {
  padding: 24px;
}

.data-overview-container {
  max-width: 1200px;
  margin: 0 auto;
}

.data-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 0 16px 0;
  border-bottom: 1px solid #e8e8e8;
}

.data-overview-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-overview-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #262626;
}

.time-range-indicator {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 14px;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
}

.time-range-indicator .anticon {
  color: #1890ff;
}

.data-overview-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.controls-right {
  display: flex;
  align-items: center;
}

.custom-time-range {
  display: flex;
  justify-content: flex-start;
  padding-left: 8px;
}

.time-range-buttons {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.time-range-buttons .ant-btn {
  border-radius: 0;
  box-shadow: none;
  min-width: 70px;
}

.time-range-buttons .ant-btn:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.time-range-buttons .ant-btn:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.data-overview-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.data-overview-summary {
  margin-bottom: 24px;
}

.data-overview-summary .ant-card {
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.data-overview-chart {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.data-overview-chart .ant-card-body {
  padding: 24px;
}

@media (max-width: 768px) {
  .data-overview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .controls-left {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .controls-left .ant-select {
    width: 100% !important;
  }
  
  .time-range-buttons {
    width: 100%;
  }
  
  .time-range-buttons .ant-btn {
    flex: 1;
    min-width: auto;
  }
  
  .controls-right {
    justify-content: center;
  }
  
  .custom-time-range {
    padding-left: 0;
    justify-content: center;
  }
  
  .custom-time-range .ant-picker {
    max-width: none;
    width: 100%;
  }
  
  .data-overview-summary .ant-col {
    margin-bottom: 16px;
  }
}

/* 时间范围按钮组样式优化 */
.data-overview-controls .ant-space-compact .ant-btn-primary {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border-color: #1890ff;
}

.data-overview-controls .ant-space-compact .ant-btn-primary:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
  border-color: #40a9ff;
} 